package com.bos.report.model;

/**
 * Created by IntelliJ IDEA.
 * User: Latief
 * Date: 5/22/11
 * Time: 8:32 PM
 * To change this template use File | Settings | File Templates.
 */
public class Bos02 implements ReportModel{

    private String nss;
    private String nama;
    private String alamat;
    private String kecamatan;
    private String negeri;
    private String swasta;
    private String jumlahMurid;
    private String alokasi;

    public Bos02() {
    }

    public String getNss() {
        return nss;
    }

    public void setNss(String nss) {
        this.nss = nss;
    }

    public String getNama() {
        return nama;
    }

    public void setNama(String nama) {
        this.nama = nama;
    }

    public String getAlamat() {
        return alamat;
    }

    public void setAlamat(String alamat) {
        this.alamat = alamat;
    }

    public String getKecamatan() {
        return kecamatan;
    }

    public void setKecamatan(String kecamatan) {
        this.kecamatan = kecamatan;
    }

    public String getNegeri() {
        return negeri;
    }

    public void setNegeri(String negeri) {
        this.negeri = negeri;
    }

    public String getSwasta() {
        return swasta;
    }

    public void setSwasta(String swasta) {
        this.swasta = swasta;
    }

    public String getJumlahMurid() {
        return jumlahMurid;
    }

    public void setJumlahMurid(String jumlahMurid) {
        this.jumlahMurid = jumlahMurid;
    }

    public String getAlokasi() {
        return alokasi;
    }

    public void setAlokasi(String alokasi) {
        this.alokasi = alokasi;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Bos02)) return false;

        Bos02 bos02 = (Bos02) o;

        if (alamat != null ? !alamat.equals(bos02.alamat) : bos02.alamat != null) return false;
        if (alokasi != null ? !alokasi.equals(bos02.alokasi) : bos02.alokasi != null) return false;
        if (jumlahMurid != null ? !jumlahMurid.equals(bos02.jumlahMurid) : bos02.jumlahMurid != null) return false;
        if (kecamatan != null ? !kecamatan.equals(bos02.kecamatan) : bos02.kecamatan != null) return false;
        if (nama != null ? !nama.equals(bos02.nama) : bos02.nama != null) return false;
        if (negeri != null ? !negeri.equals(bos02.negeri) : bos02.negeri != null) return false;
        if (nss != null ? !nss.equals(bos02.nss) : bos02.nss != null) return false;
        if (swasta != null ? !swasta.equals(bos02.swasta) : bos02.swasta != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = nss != null ? nss.hashCode() : 0;
        result = 31 * result + (nama != null ? nama.hashCode() : 0);
        result = 31 * result + (alamat != null ? alamat.hashCode() : 0);
        result = 31 * result + (kecamatan != null ? kecamatan.hashCode() : 0);
        result = 31 * result + (negeri != null ? negeri.hashCode() : 0);
        result = 31 * result + (swasta != null ? swasta.hashCode() : 0);
        result = 31 * result + (jumlahMurid != null ? jumlahMurid.hashCode() : 0);
        result = 31 * result + (alokasi != null ? alokasi.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Bos02{" +
                "nss='" + nss + '\'' +
                ", nama='" + nama + '\'' +
                ", alamat='" + alamat + '\'' +
                ", kecamatan='" + kecamatan + '\'' +
                ", negeri='" + negeri + '\'' +
                ", swasta='" + swasta + '\'' +
                ", jumlahMurid='" + jumlahMurid + '\'' +
                ", alokasi='" + alokasi + '\'' +
                '}';
    }
}
